package weixin.controller;

import java.util.Map;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import weixin.utils.BaseUtils;

/**   
 * @author：朱笑    
 * @note：测试用action
 * @date：2017年4月22日 
 */
@RestController
public class TestAction {
	@RequestMapping("accesst_token")
	public String accesst_token(@RequestParam("id") int id){
		return BaseUtils.getAccess_token();
	}
	@RequestMapping("api_ticket")
	public String api_ticket(){
		return BaseUtils.getApi_ticket();
	}
	@RequestMapping("getConfig")
	public Map<String,String> getConfig(String url){
		return BaseUtils.getConfig(url);
	}
}
